Queue a redraw when the grab changes. (#396470, Benjamin Berg)
authorMatthias Clasen <mclasen@redhat.com>
Tue, 16 Jan 2007 14:17:12 +0000 (14:17 +0000)
committerMatthias Clasen <matthiasc@src.gnome.org>
Tue, 16 Jan 2007 14:17:12 +0000 (14:17 +0000)
2007-01-16  Matthias Clasen  <mclasen@redhat.com>

        * gtk/gtkrange.c (range_grab_remove): Queue a redraw when the
        grab changes.  (#396470, Benjamin Berg)

svn path=/trunk/; revision=17159

ChangeLog
gtk/gtkrange.c

index 0b2606b06366b4151c25c6ce01c8eb80c60756c1..27143877cd4cefabd8808fc24f575c492cf8bf2d 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,8 @@
+2007-01-16  Matthias Clasen  <mclasen@redhat.com>
+
+       * gtk/gtkrange.c (range_grab_remove): Queue a redraw when the
+       grab changes.  (#396470, Benjamin Berg)
+
 2007-01-15  Emmanuele Bassi  <ebassi@gnome.org>
 
        * gtk/gtkrecentchoosermenu.c: Ellipsize the menu items label
index d39f537983d6b8d21a3a034125823ab895afdccf..e9667817a934ae8e394210bc5ad6ab90b99327b0 100644 (file)
@@ -1705,12 +1705,16 @@ range_grab_add (GtkRange      *range,
 static void
 range_grab_remove (GtkRange *range)
 {
+  MouseLocation location;
+
   gtk_grab_remove (GTK_WIDGET (range));
-  
+  location = range->layout->grab_location; 
   range->layout->grab_location = MOUSE_OUTSIDE;
   range->layout->grab_button = 0;
 
-  if (gtk_range_update_mouse_location (range))
+  if (gtk_range_update_mouse_location (range) ||
+      location != MOUSE_OUTSIDE)
     gtk_widget_queue_draw (GTK_WIDGET (range));
 }